define(
		[
		  'jquery',
		  'bootstrap',
		  'underscore',
		  'backbone',
		  'text!query/templates/PagerTemplate.html'
        ], function($, _bootstrap, _, Backbone, pagerTemplate) {
			var PagerView = Backbone.View.extend({
				tagName : 'div',
				render : function() {
					var compileTemplate = _.template(pagerTemplate, this.model);
					this.$el.html(compileTemplate);
					return this;
				},
				events : {
					'click .pagination a:not(:has(input))' : function(e) {
						var page = $(e.target).attr("page");
						var reg= /^[0-9]*[1-9][0-9]*$/;
				  		if (reg.test(page)) {
				  			this.paging(page);
				  		}
					},
					'keydown #jump_page' : function(e, undefined) {
						if (e.keyCode == 13) {
					  		var page = $(e.target).val();
					  		var reg= /^[0-9]*[1-9][0-9]*$/;
					  		if (reg.test(page)) {
					  			this.paging(page);
					  		}
				  		}
					}
				},
				paging : function(page) {
				}
			});
			return PagerView;
});